home *** CD-ROM | disk | FTP | other *** search
/ HAKERIS 11 / HAKERIS 11.ISO / soft / development / Macromedia RoboHelp X5 / RoboHelpOffice.exe / Data1.cab / _D675F423E9324BA4BBE3CFB5DB07E0F9 < prev    next >
Encoding:
Text File  |  2003-07-24  |  3.7 KB  |  107 lines

  1. <html>
  2.     <head>
  3.         <script language="JavaScript" src="whver.js"></script>
  4.         <script language="javascript">
  5.             var gbTopicLoaded = false;
  6.             var gnTryCount = 0;
  7.             function UniqueID() {
  8.                 return parent.UniqueID();
  9.             }
  10.             function DoCommand(cmd, param) 
  11.             {
  12.                 if( (parent!=this) && (parent.parent.DoCommand) )
  13.                 {
  14.                     parent.parent.DoCommand(cmd, param);    
  15.                 }
  16.             }
  17.             function FrameLoaded()
  18.             {
  19.                 if (window.frames["Navigation Pane"].innerWidth <= 0 || window.frames[0] != window.frames["Navigation Pane"])
  20.                 {
  21.                      window.location.reload();
  22.                 }
  23.             }
  24.             function CorrectFrame()
  25.             {
  26.                 var curNavLoc = window.frames["Navigation Pane"].document.location.href;
  27.  
  28.                 if (curNavLoc.indexOf(parent.parent.gsNavPane) == -1)
  29.                     window.frames["Navigation Pane"].document.location.replace(parent.parent.gsNavPane);
  30.             }
  31.             function CorrectTopicFrame()
  32.             {
  33.                 if (gbTopicLoaded || (gbMac && gbIE))
  34.                 {
  35.                     gnTryCount = 0;
  36.                     var curTopicLoc = window.frames["Topic Pane"].document.location.href;
  37.  
  38.                     if (curTopicLoc.indexOf(parent.parent.gsTopic) == -1)
  39.                         window.frames["Topic Pane"].document.location.replace(parent.parent.gsTopic);
  40.                 }
  41.                 else if (gbNav7 || gbMozilla)
  42.                 {
  43.                     if (gnTryCount < 10)
  44.                     {
  45.                         setTimeout("CorrectTopicFrame()",100);
  46.                     }
  47.                     gnTryCount++;
  48.                 }
  49.             }
  50.         </script>
  51.     </head>
  52.     <script language="javascript">
  53.         // Special handling for Netscape 4
  54.         if ((parent.parent.gsCurFramesetCol.substr(0, 2) == "0,") && document.layers ) {
  55.             var sHtml = "";
  56.             sHtml += "<frameset id=\"Bottom Frame\" cols=\"100%, *";
  57.             sHtml += "\" border=\"0\" frameborder=\"0\">";
  58.             sHtml += "<frame name=\"Topic Pane\" bordercolor=\"gray\" marginwidth=\"0\" marginheight=\"0\" src=\"";
  59.             sHtml += parent.parent.gsTopic;
  60.             sHtml += "\"/>";
  61.             sHtml += "<frame name=\"Navigation Pane\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" src=\"";
  62.             sHtml += "wf_blank.htm";
  63.             sHtml += "\"/>";
  64.             sHtml += "</frameset>";
  65.             document.write(sHtml);
  66.             setTimeout("CorrectTopicFrame()",100);
  67.         } else if (parent.parent.gsCurFramesetCol.substr(0, 2) == "0," && (!gbWindows || gbOpera) && !(gbNav6 && !gbNav7)) {
  68.             var sHtml = "";
  69.             sHtml += "<frameset id=\"Bottom Frame\" cols=\"";
  70.             sHtml += parent.parent.gsCurFramesetCol;
  71.             sHtml += "\" border=\"0\" frameborder=\"0\">";
  72.             sHtml += "<frame name=\"Navigation Pane\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" src=\"";
  73.             sHtml += "wf_blank.htm";
  74.             sHtml += "\" />";
  75.             sHtml += "<frame name=\"Topic Pane\" bordercolor=\"gray\" src=\"";
  76.             sHtml += parent.parent.gsTopic;
  77.             sHtml += "\"/>";
  78.             sHtml += "</frameset>";
  79.             document.write(sHtml);
  80.             setTimeout("CorrectTopicFrame()",100);
  81.             setTimeout("window.frames['Navigation Pane'].document.location.replace('wf_blank.htm')",100);
  82.         } else {
  83.             var sHtml = "";
  84.             sHtml += "<frameset id=\"Bottom Frame\" cols=\"";
  85.             sHtml += parent.parent.gsCurFramesetCol;
  86.             sHtml += "\" border=\"0\" frameborder=\"0\">";
  87.             sHtml += "<frame name=\"Navigation Pane\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" src=\"";
  88.             sHtml += parent.parent.gsNavPane;
  89.             sHtml += "\" onload=\"CorrectFrame()\"/>";
  90.             sHtml += "<frame name=\"Topic Pane\" bordercolor=\"gray\" src=\"";
  91.             sHtml += parent.parent.gsTopic;
  92.             sHtml += "\" />";
  93.             sHtml += "</frameset>";
  94.             document.write(sHtml);
  95.             setTimeout("CorrectTopicFrame()",100);
  96.             if ((gbNav6 && !gbNav7) || gbSafari)
  97.             {
  98.                 setTimeout("window.frames['Navigation Pane'].document.location.replace(parent.parent.gsNavPane)",100);
  99.             }
  100.             if (gbNav4 && !gbNav6)
  101.             {
  102.                 onload = setTimeout("FrameLoaded()",100);
  103.             }
  104.         }
  105.     </script>
  106. </html>
  107.